system to extract data from csv file in python

28

#import necessary modules
import csv
with open('X:\data.csv','rt')as f:
  data = csv.reader(f)
  for row in data:
        print(row)

Comments

Submit
0 Comments